package dao.connection;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import oracle.jdbc.OracleDriver;

class OracleDBConnection extends DBConnection {

	@Override
	public Connection connectDB() {
		try {
			DriverManager.registerDriver(new OracleDriver());
			Connection connection = DriverManager.getConnection(  
			        "jdbc:oracle:thin:@127.0.0.1:1521:xe", "root", "root");
			System.out.println("connected");
			return connection;
		} catch (SQLException e) {
			e.printStackTrace();
		}  
		return null;
	}

}
